package config

const (
	AgentMinVer    = 120
	PusherMinVer   = 520
	BlockMinCount  = 10
	BlockDelta     = 15
	PerUseMinCount = 2
	RateDelta      = 10
	SpeedDuration  = 6
)

const (
	TcpPortStartPos    = 15550
	TcpPortCount       = 10
	UdpPortStartPos    = 16550
	UdpPortCount       = 10
	UdpReceiveBuffSize = 4 * 1024 * 1024
	UdpReadBufferSize  = 65507 // UDP最大包大小
)

const (
	HttpManagePort  = 7171
	HttpStreamPort  = 8181
	UdpStatPort     = 17550
	PathDownload    = "/download"
	PathAgentInfo   = "/info"
	PathAgentLogin  = "/login"
	PathAgentAlive  = "/alive"
	PathStream      = "/stream"
	PathPusherInfo  = "/p-info"
	PathPusherLogin = "/p-login"
	PathPusherAlive = "/p-alive"
)

const (
	B  = 1
	KB = 1000 * B
	MB = 1000 * KB
)

const (
	Bit  = 1
	KBit = 1000 * Bit
	MBit = 1000 * KBit
)

const (
	Byte2Bit     = 8
	MaxRateLimit = 20 * MBit / KBit
)

const (
	IspCustom  = "CUSTOM"
	IspTelecom = "CT"
	IspMobile  = "CM"
	IspUnicom  = "CU"
)
